package com.lyu.travel.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyu.travel.core.entity.Place;
import com.lyu.travel.core.entity.Province;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ProjectName: [travel]
 * @Package: [com.lyu.travel.core.mapper]
 * @ClassName: [PlaceMapper]
 * @Description: 景点数据接口
 * @Author: [78483]
 * @CreateDate: [2020-06-04 20:51]
 * @UpdateUser: [78483]
 * @UpdateDate: [2020-06-04 20:51]
 * @UpdateRemark: [说明本次修改内容]
 * @Version: [v1.0]
 */
public interface PlaceMapper extends BaseMapper<Place> {
    @Select("select * from t_place where provinceid = #{id}")
    public List<Place> findPlaceByid(int id);

    @Select(" select * from t_place where name = #{name}")
    public Place findByPlacename(String name);

}
